Skip to content

2.3 Home Assistant

Home Assistant

Install Home Assistant Supervised on a Smart Pi One

This guide will go over how to install Home Assistant (Supervised) on Debian based Linux Distributions. Remember only the latest version of Debian is supported.

SD card with the image below

Prebuilt image link for 32GB or more : https://drive.google.com/file/d/1OFF1DpqMVtUqXKGGxFsO4lJdDIy_v8eS/view?usp=drive_link

The default logins are :

Access your account by using the default username “root” and "pi", the default password “pi”.

Prerequisites

Connect to the smartpi via ssh with mobaxterm or putty, for example.

Update the smartpi

sudo apt-get update && sudo apt-get upgrade -y

Firmware Update and restart

Use the armbian-config utility to update the firmware:

armbian-config

In the interactive menu, select "System"

homeassistant1

Select "Firmware" and "< Yes >"

homeassistant2

And select "< Yes >" for reboot

homeassistant3

Install Home Assistant Supervised

Installed logged in as root.

Update the OS name

Only Debian is supported by HA supervised, so we need to fake the OS name, otherwise install will fail on check:

In /etc/os-release update ARMBIAN_PRETTY_NAME by:

ARMBIAN_PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"

Give a host name if you like

hostnamectl set-hostname homeassistant

Configure AppArmor and cgroupv1

I am not going to explain what and why, this has beed discussed here before (see links below).

apt install apparmor
sudo echo "extraargs=apparmor=1 security=apparmor systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false" >> /boot/armbianEnv.txt
update-initramfs -u
reboot

Home Assistant installation for YUMI Smart Pi One

git clone https://github.com/adnroboticsfr/smartpi_homeassistant.git
cd smartpi_homeassistant
chmod +x install.sh
./install.sh

Chose qemuarm

homeassistant4

Wait check installation of Home Assistant and reboot.

homeassistant7

A short while after the installation begins, the Home Assistant web interface will be available at http://homeassistant:8123 or http://IP:8123, where IP is the IP address of your device. I get the “Preparing Home Assistant” screen.

Wait until the installation is complete.

homeassistant5

Once its preparation is complete, it will ask you for some settings.

homeassistant6